package com.umfwechat.util; 

/**
 * 系统异常类
 * rpid用于查询异常出处  retcode用于返回信息  retMsg用于显示异常信息
 * @author wl
 */

public class SysException extends RuntimeException {
	
		private static final long serialVersionUID = 1L;
		
		private String rpid;
		private String retCode;
		private String retMsg;
		
		public SysException(String retMsg){
			this.retMsg = retMsg;
		}
		
		public SysException(String retMsg,Throwable cause){
			super(cause);
			this.retMsg = retMsg;
		}
		
		public SysException( String retCode, String retMsg){
			this.retMsg = retMsg;
			this.retCode = retCode;
		}
		
		public SysException(String retCode, String retMsg, Throwable cause){
			super(cause);
			this.retMsg = retMsg;
			this.retCode = retCode;
		}

		public String getRpid() {
			return rpid;
		}

		public SysException setRpid(String rpid) {
			this.rpid = rpid;
			return this;
		}

		public String getRetCode() {
			return retCode;
		}

		public void setRetCode(String retCode) {
			this.retCode = retCode;
		}

		public String getRetMsg() {
			return retMsg;
		}

		public void setRetMsg(String retMsg) {
			this.retMsg = retMsg;
		}
}
